#!/bin/bash

export ADBHOST=192.168.13.148
adb kill-server
adb devices

i=0
cnt=200

while [ $i -le $cnt ]
do
	echo No $i ...

#--------------------------------------------------------------------------
#first use "adb shell getevent" to lookup all of input device.
#then use "adb shell getevent /dev/input/event0" to catpture specific dev input event.
#--------------------------------------------------------------------------	
	
	adb shell sendevent /dev/input/event3 4 4 458792
	adb shell sendevent /dev/input/event3 1 28 1
	adb shell sendevent /dev/input/event3 0 0 0
	adb shell sendevent /dev/input/event3 4 4 458792
	adb shell sendevent /dev/input/event3 1 28 0
	adb shell sendevent /dev/input/event3 0 0 0 
	
	sleep 120
	sleep 10

	i=`expr $i + 1`
	echo ""
done

exit
